export GOBIN := $(CURDIR)/bin

build:
	go build -o $(GOBIN)/server -ldflags "-X main.VERSION=1.0.4 -X 'main.BUILD_TIME=`date`' -s -w" cmd/server/server.go
	go build -o $(GOBIN)/robot -ldflags "-w -s" cmd/robot/robot.go

build_linux:
	GOARCH=amd64 GOOS=linux make build